<?php echo $this->element('banner');?>
<div class="container prd-category">
    <div id="sub-page" class="row">
        <div class="col-lg-12">
            <h2><?php echo __('Partners')?></h2>
			<div class="row">
            <?php
            foreach($partners as $key=>$partner) :
			if($key && $key % 6 == 0):
				echo '</div>';
                echo '<div class="row">';
			endif;
            ?>
                <div class="col-lg-2 home-product gallery-row">
                    <div class="product-list partner-small">
                        <a href="<?php echo $partner['Partner']['link']?>" target="_blank">
                            <img src="/files/images/<?php echo $partner['Partner']['image']?>" width="145" height="68">
                            <div class="pd-title">
                            	<h5><?php echo $partner['Partner']['name' . $code]?></h5>
                            </div>
                        </a>
                    </div>      	
                </div>
            <?php endforeach;?>
            </div>
            <?php if($this->Paginator->counter('{:pages}') > 1) :?>
            <nav>
                <div class="pagination">
                <?php
                    echo $this->Paginator->prev('&laquo; ', array('escape' => false,'tag' => 'li'), '&laquo; ', array('escape' => false, 'tag' => 'span'));
                    echo $this->Paginator->numbers(array('separator' => '', 'tag' => 'li', 'currentTag' => 'span', 'currentClass' => 'active'));
                    echo $this->Paginator->next(' &raquo;', array('tag' => 'li', 'escape' => false), ' &raquo;', array('tag' => 'span', 'escape' => false));
                ?>
                </div>
            </nav>
            <?php endif;?>
        </div>
    </div>
</div>